<template>
	<view class="box">
		<headertop title="设置支付密码" str1="oridei" :back1="back1"></headertop>
		<view class="boxback">

		</view>
		<view class="centerbox">
			<view class="cardbox">
				<view class="cnter">
					<view class="line">
						<view class="lable">
							手机号
						</view>
						<view class="right">
							<input type="text" placeholder="请输入手机号" />
						</view>
					</view>
					<view class="line">
						<view class="lable">
							验证码
						</view>
						<view class="right">
							<input type="text" placeholder="请输入验证码" />
							<view class="btnyzm">
								获取验证码
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="zhifumima">
				<input type="text" placeholder="请设置支付密码" />
			</view>
			<view class="zhifumima">
				<input type="text" placeholder="请确认支付密码" />
			</view>
		</view>
		<view class="fixedbox">
			<view class="btn" @click="save">
				确认
			</view>
		</view>
	</view>
</template>

<script setup>
	import headertop from '@/components/header.vue'
	import {
		onLoad,
		onPageScroll
	} from "@dcloudio/uni-app";
	import {
		ref,
		reactive
	} from 'vue'
	const back1 = ref('')
	onPageScroll((e) => {
		if (e.scrollTop > 100) {
			back1.value = '#84BD78'
		} else {
			back1.value = ''
		}
	})
</script>

<style lang="scss">
	page {
		background: #F7F8FA;
	}

	.fixedbox {
		width: 100%;
		overflow: hidden;
		height: 184rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		position: fixed;
		bottom: 0%;
		z-index: 9999;

		.btn {
			width: 686rpx;
			height: 88rpx;
			background: #7EBC79;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			text-align: center;
			line-height: 88rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 30rpx;
			color: #FFFFFF;
			text-align: center;
			line-height: 88rpx;
			margin: auto;
			margin-top: 22rpx;
		}
	}

	.box {
		width: 100%;
		overflow: hidden;
		position: relative;

		.boxback {
			width: 100%;
			height: 278rpx;
			background: linear-gradient(180deg, #84BD78 0%, rgba(132, 189, 120, 0) 100%);
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			position: absolute;
			z-index: -1;
		}

		.centerbox {
			width: 686rpx;
			margin: auto;
			margin-top: 196rpx;
			overflow: hidden;

			.zhifumima {
				width: 686rpx;
				height: 92rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.04);
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				margin-top: 32rpx;
				display: flex;
				align-items: center;

				input {
					margin-left: 24rpx;
					font-size: 28rpx;
				}
			}

			.cardbox {
				width: 100%;
				height: 198rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.04);
				border-radius: 12rpx 12rpx 12rpx 12rpx;

				.cnter {
					width: 638rpx;
					margin: auto;

					.line {
						width: 100%;
						height: 100rpx;
						border-bottom: 2rpx solid #F2F2F2;
						display: flex;
						align-items: center;

						.lable {
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 28rpx;
							color: #333333;
						}

						.right {
							margin-left: 70rpx;
							display: flex;
							align-items: center;

							.btnyzm {
								width: 172rpx;
								height: 56rpx;
								background: rgba(126, 188, 121, 0.21);
								border-radius: 8rpx 8rpx 8rpx 8rpx;
								opacity: 0.8;
								text-align: center;
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 28rpx;
								color: #7EBC79;
								line-height: 56rpx;
							}

							input {
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 28rpx;
								color: #333333;
							}
						}
					}
				}
			}
		}

		.userinfopback {
			width: 100%;
			height: 278rpx;
			background: linear-gradient(180deg, #84BD78 0%, rgba(132, 189, 120, 0) 100%);
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			position: absolute;
			z-index: -1;
		}

	}
</style>